package com.org.devg.monitor.common;

public class CommonEnum {

  public static enum messageType {
    MsgController(1, "Controller"),
    MsgService(2, "Service"),
    MsgMapper(3, "Mapper");
    private int key;
    private String value;

    private messageType(int key, String value) {
      this.key = key;
      this.value = value;
    }

    public int getKey() {
      return key;
    }

    public String getValue() {
      return value;
    }
  }

  public static enum resultType {
    INFO("info", "info"),
    ERROR("error", "error");
    private String key;
    private String value;

    private resultType(String key, String value) {
      this.key = key;
      this.value = value;
    }

    public String getKey() {
      return key;
    }

    public String getValue() {
      return value;
    }
  }

}
